package org.xlp.base.application.base;

import org.xlp.db.tableoption.annotation.XLPColumn;
import org.xlp.db.tableoption.annotation.XLPId;
import org.xlp.db.tableoption.xlpenum.DataType;
import org.xlp.javabean.annotation.FieldName;

import java.io.Serializable;

/**
 * Description: 关联对象基本属性
 * <br/>date: 2024/11/27 19:11
 *
 * @version 1.0
 * @author: xlp
 */
public abstract class BaseLink implements Serializable, Cloneable{
    private static final long serialVersionUID = 1843975893268690481L;

    @FieldName(mark = "主键，唯一标识")
    @XLPId(columnName = "id", descriptor = "主键，唯一标识")
    private Serializable id;

    @FieldName(mark = "类标识")
    @XLPColumn(columnName = "classId", dataType = DataType.VARCHAR,
            length = 32, isNull = false, descriptor = "类标识", maxLength = 32)
    private String classId;

    public Serializable getId() {
        return id;
    }

    public void setId(Serializable id) {
        this.id = id;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    @Override
    public String toString() {
        return "BaseLink{" +
                "id=" + id +
                ", classId='" + classId + '\'' +
                '}';
    }
}
